# 从wsgiref模块导入make_server包
from wsgiref.simple_server import make_server
# 导入hello.py 中的application函数
from hello import application

#创建一个服务器，ip地址为空，端口是8000，处理函数application
httpd = make_server('',8000,application)
print('Serving HTTP on port 8000...')
# 监听HTTP请求
httpd.serve_forever()